package com.xugongzhang.autowire.service;

import com.xugongzhang.autowire.dao.BookDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author X
 * @date 2022/12/4 16:37
 */
@Service
public class BookService {
    
//    @Qualifier("bookDao")
    @Autowired(required = false)
//    @Resource(name = "bookDao2")
    private BookDao bookDao;
    
    public void print() {
        System.out.println("bookDao：" + bookDao);
    }
}
